package com.one.blocks.mvc.excel;

import com.one.blocks.mvc.enums.BatchStrategyEnum;
import com.one.blocks.mvc.enums.RepeatStrategyEnum;
import lombok.Data;

import java.io.Serializable;

/**
 * @author linfuxin Created on 2022-03-24 10:24:24
 */
@Data
public class UploadParam implements Serializable {

    /**
     * 异常处理策略 0-跳过 1-中断 2-回滚
     */
    private Integer exceptionStrategy = BatchStrategyEnum.ROLLBACK.getCode();

    /**
     * 是否保存导入结果信息
     */
    private Boolean saveResult = Boolean.FALSE;

    /**
     * 判断数据是否重复的属性
     */
    private String[] keys;

    /**
     * 数据重复策略 0-跳过 1-中断 2-覆盖
     */
    private Integer keyStrategy = RepeatStrategyEnum.IGNORE.getCode();
}
